import 'package:flutter/material.dart';
import 'package:ty_smart_watch/common/images_url.dart';

class SportMainImage extends StatelessWidget {
  final int id;

  const SportMainImage({super.key, required this.id});

  @override
  Widget build(BuildContext context) {
    return Image.asset(getImgSrc(id), width: double.infinity, height: 200);
  }

  String getImgSrc(int id) {
    String src;
    switch (id) {
      case 0x02:
        src = SPORT_CHAHUA_RUN;
        break;
      case 0x03:
        src = SPORT_CHAHUA_BIKE;
        break;
      case 0x08:
        src = SPORT_CHAHUA_WANGQIU;
        break;
      case 0x0B:
        src = SPORT_CHAHUA_BASKETBALL;
        break;
      case 0x0C:
        src = SPORT_CHAHUA_FOOTBALL;
        break;
      case 0x0D:
        src = SPORT_CHAHUA_BANGQIU;
        break;
      case 0x0E:
        src = SPORT_CHAHUA_PAIQIU;
        break;
      case 0x11:
        src = SPORT_CHAHUA_QVGUNQIU;
        break;
      case 0x14:
        src = SPORT_CHAHUA_YOGA;
        break;
      case 0x1B:
        src = SPORT_CHAHUA_YOGA;
        break;
      default:
        src = SPORT_CHAHUA_RUN;
    }

    return src;
  }
}
